import os

# 饿了么位置配置
# 在手机第几页
ELM_APP_LOCATION_PAGE = 2
# 在屏幕的位置
ELM_APP_LOCATION = {'x': 910, 'y': 1200}
# 关闭活动弹窗
activity_alert_close = {'x': 545, 'y': 1665}
# 果园入口
orchard_entrance = {'x': 550, 'y': 970}
activity_location = {'x': 130, 'y': 1700}


# 常量配置
CONSTANT_KEYEVENT = 'adb shell input keyevent '

#
CMD_DEVICES = 'adb devices'  # 获取连接设备
# 滑动
CMD_SWIPE = 'adb shell input swipe '
# 点击
CMD_TAP = 'adb shell input tap '
# 唤醒屏幕
CMD_WAKE_UP = CONSTANT_KEYEVENT + '82'
# 回到主页
CMD_HOME = CONSTANT_KEYEVENT + '3'

# 图片文件位置
CACHE_FILE_PATH = os.getcwd() + '\\file'


# elmIcon文件位置
ELM_ICON_FILE_PATH = os.getcwd() + '\\file\\target\\ElmAppIcon.png'
# 活动按钮位置
ACTIVITY_FILE_PATH = os.getcwd() + '\\file\\target\\activeButton.png'
# 领取水滴按钮
RECEIVE_FILE_PATH = os.getcwd() + '\\file\\target\\receiveBtn.png'

# 目标文件位置
TARGET_FILE_PATH = os.getcwd() + '\\file\\target\\'

# 截图缓存位置
CACHE_FILE_PATH_screencap = CACHE_FILE_PATH + '\\cache.png'
